package com.icloud.article.boot.dto;

import com.icloud.common.core.constant.ValidateConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@ApiModel("评论dto")
@Data
public class DiscussDto {

    @ApiModelProperty(value = "帖子id",required = true)
    @NotNull(message = ValidateConstant.NOT_NULL)
    private Long articleId;

    @ApiModelProperty(value = "评论内容",required = true)
    @NotEmpty(message = ValidateConstant.NOT_EMPTY)
    private String content;

    @ApiModelProperty(value = "评论图片,仅支持图片,不支持视频")
    private List<DiscussAttachmentDto> attachmentList;

    @ApiModelProperty("上级评论id")
    private Long parentId;
}
